#!/bin/bash
echo "进入 NanoHatOLED"
cd /root/NanoHatOLED
echo "更新master"
sudo git pull origin master
echo "更新submodule"
sudo git submodule update
echo "Rebooting in 5 seconds!"
sleep 1
echo "Rebooting in 4 seconds!"
sleep 1
echo "Rebooting in 3 seconds!"
sleep 1
echo "Rebooting in 2 seconds!"
sleep 1
echo "Rebooting in 1 seconds!"
sleep 1
echo "Rebooting now!  "
sleep 1
sudo reboot